package com.cn.jinl.dao;

import com.cn.jinl.domain.AbandonMaterial;
import com.cn.jinl.domain.AbandonMaterialExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface AbandonMaterialMapper {
    int countByExample(AbandonMaterialExample example);

    int deleteByExample(AbandonMaterialExample example);

    int insert(AbandonMaterial record);

    int insertSelective(AbandonMaterial record);

    List<AbandonMaterial> selectByExample(AbandonMaterialExample example);

    List<AbandonMaterial> selectAbandonMaterialList(QueryForm queryForm);
    int selectAbandonMaterialListCount(QueryForm queryForm);

    List<AbandonMaterial> selectYearTotalWeight(QueryForm queryForm);
    List<AbandonMaterial> selectYearAllTotalWeight(QueryForm queryForm);

    List<AbandonMaterial> selectAbandonPercents(QueryForm queryForm);

    int updateByExampleSelective(@Param("record") AbandonMaterial record, @Param("example") AbandonMaterialExample example);

    int updateByExample(@Param("record") AbandonMaterial record, @Param("example") AbandonMaterialExample example);
}